﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SearchBox.aspx.cs" Inherits="demo.Pages.SearchBox" %>

<%@ Register Assembly="Water" Namespace="Water.Web.Controls" TagPrefix="page" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <fieldset>
            <legend>SearchBox</legend>
            <ul>
                <li>支持多种对话框形式</li>
                <li>优化的弹出对话框，使加载速度更快</li>
                <li>对话框支持拖拽</li>
                <li>使用、设置简单</li>
            </ul>
        </fieldset>
        <br />
        <page:Container ID="Container1" runat="server" TitleText="SearchBox">
            <ItemTemplate>
                <page:SearchBox ID="SearchBox1" runat="server" Src="LeftMenuSelector.aspx" Prompt="以window.open的方式打开"></page:SearchBox>
                <page:SearchBox ID="SearchBox2" runat="server" DialogId="Dialog1" Prompt="对话框内容在本本页面"></page:SearchBox>
                <page:SearchBox ID="SearchBox3" runat="server" DialogId="Dialog3" Prompt="对话框内容在iframe内"></page:SearchBox>
            </ItemTemplate>
        </page:Container>
        <page:Dialog ID="Dialog1" runat="server" Width="500" TitleText="选择">
            <ItemTemplate>
                <page:LinkButton ID="LinkButton1" runat="server" OnClientClick="setReturnValue('1819','刘欣懿');" Prompt="sys.update">刘欣懿</page:LinkButton>
                <page:LinkButton ID="LinkButton2" runat="server" OnClientClick="setReturnValue('1818','刘国强');" Prompt="sys.update">刘国强</page:LinkButton>
            </ItemTemplate>
        </page:Dialog>
        <page:Dialog ID="Dialog3" runat="server" Width="200" Height="400" TitleText="选择" Promptable="false" Src="LeftMenuSelector.aspx">
        </page:Dialog>
    </div>
    </form>
</body>
</html>
